for n in range(100,1000):
    bai = n//100
    shi = n//10%10
    ge = n%10
    if n ==bai**3+shi**3+ge**3:
        print("{}是水仙花数 ".format(n))